<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/SystemCenter/menusettings.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>菜单设置</span>
        </div>
        <div class="layui-card-body" style="margin-right: 10px;height: 460px;overflow: auto">
            <%--<div class="layui-btn-group">
                <div class="layui-btn-container">
                    <button class="layui-btn layui-btn-sm" id="newmenu" style="margin-right: 10px!important;"><i class="layui-icon layui-icon-addition"></i>新增</button>
                    <button class="layui-btn layui-btn-sm layui-btn-danger" id="delmenu"><i class="layui-icon layui-icon-delete"></i>删除</button>
                </div>
            </div>--%>
            <table class="layui-table" id="menusettingtable" lay-filter="menusettingtable" ></table>
        </div>
    </div>
</div>

<div class="layui-row" id="associateddiv" style="display:none;">
    <div class="layui-col-md10 associated-form">
        <form class="layui-form layui-from-pane" action="" style="margin-top:20px" id="associated-formid" lay-filter="associated-form">
            <div class="layui-form-item">
                <label class="layui-form-label">资源列表</label>
                <div class="layui-input-block" id="resourcesradio">
                    <input type="hidden" name="id" id="menuid">
                    <input type="hidden" name="level" value="1">
                   <%-- <input type="checkbox" value="test1" name="test" title="测试">
                    <input type="checkbox" value="test2" name="test" title="测试1">
                    <input type="checkbox" value="test3" name="test" title="测试2213">
                    <input type="checkbox" value="test4" name="test" title="测试3">
                    <input type="checkbox" value="test5" name="test" title="测试1313">
                    <input type="checkbox" value="test6" name="test" title="测试1">
                    <input type="checkbox" value="test7" name="test" title="测试2123">
                    <input type="checkbox" value="test8" name="test" title="测试3">--%>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="banktAddsubmit" id="banktAddsubmit">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="associated">
    <div class="layui-btn-groups">
       <%-- <button type="button" class="layui-btn layui-btn-sm layui-btn-warm" onclick="associatedbutton('{{d.authorityId}}','{{d.authorityName}}','{{d.id}}')">
            关联
        </button>--%>
    </div>
</script>
<script type="text/html" id="updateAndDelete">
    <div class="layui-btn-groups">
        <button type="button" class="layui-btn layui-btn-sm layui-btn-warm" onclick="associatedbutton('{{d.authorityId}}','{{d.authorityName}}','{{d.id}}','{{d.url}}')">
            关联
        </button>
        <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="toOpenUpdateLayer('{{d.authorityId}}','T','N','')">
            新增同级菜单目录
        </button>
        <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="toOpenUpdateLayer('{{d.authorityId}}','X','N','')">
            新增下级菜单目录
        </button>
       <%-- <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="toOpenUpdateLayer('{{d.authorityId}}','C','N','')">
            新增菜单
        </button>--%>
        <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="toOpenUpdateLayer('{{d.authorityId}}','M','M','{{d.id}}')">
            修改
        </button>
        <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="doDelete('{{d.authorityId}}','{{d.authorityName}}')">
            删除
        </button>
    </div>
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/js/SystemCenter/menusettings.js"></script>